Monday, May 16, 2016


Practical Handout 15-05-2016

Enter two numbers through the keyboard .if the firs number is divisible by the second number,then print"divisible",otherwise display "not divisible"

#include<stdio.h>

void main()
{
  int first, second;  

  printf("Enter two numbers:\n");
  scanf("%d%d",&first, &second);

  if(first%second==0)
    printf("First is divisible by second number \n");
  else
    printf("Not divisible\n");

}

Click to download sours files

Write a c program to convert the following letters(a,b,c,d,e)to the upper case when it is given through the keyboard(use switch case).



Share:

0 comments:

Post a Comment

Linkedin

Join with us