Mehmet Faruk Tepe 2016010231001.cpp - #include<stdio.h>#include <stdlib.h>#include<string.h> int main int num int number1 number2 number3 biggest char

Mehmet Faruk Tepe 2016010231001.cpp -...

This preview shows page 1 - 2 out of 2 pages.

#include<stdio.h> #include <stdlib.h> #include<string.h> int main () { int num; int number1, number2, number3, biggest; char name[25]; int currentNumber, sum=0; int int1=5; float flt=334.58569; double dbl=66.352167; char chr[80]="metin bilgisi"; float pi=3.14; int cevap; float a,r,alan; int i,b; char metin[1000]=" "; int idnumber; char ad[1000],soyad[1000]; do { printf("1) Answer 1\n2) Answer 2\n3) Answer 3\n4) Answer 4\n5) Answer 5\n6) Answer 6\n7) ID\nSelect Number:"); scanf("%d",&num); switch(num) { case 1: printf("Write name and surname: "); scanf("%s",name); for(int i=0; i<strlen(name); i++){ printf("Length: %d ", i+1); for(int j=0; j<=i; j++) { printf("%c", name[j]); } printf("\n"); } break; case 2: printf("Enter three numbers: "); scanf("%d %d %d", &number1, &number2, &number3); if( number1>=number2 && number1>=number3){ biggest = number1; } else if (number2>=number1 && number2>=number3){ biggest = number2; } else{ biggest = number3; } printf("The biggest is %d", biggest); break; case 3: printf("Enter 10 different numbers: "); for(int i=0; i<10; i++){ scanf("%d", &currentNumber);
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Spring '19
  • fsaf
  • Unicode, scanf

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes