sunny_jain - HTMLify profile

sunny_jain's Profile Picture

sunny_jain

4 Files

943 Views

Latest files of /sunny_jain/

CHECK PANGRAM BY C sunny_jain/CHECK_PANGRAM_BY_.C
228 Views
0 Comments
//WRITE a program to check if string is pangram?
// input-"the quick brown fox jumps over the lazy dog"
//output- is a pangram
//explanation- contains all the character from "a to z"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
bool checkpangram(char str[])
HEXADECIMAL TO DECIMAL BY SWITCH CASE sunny_jain/HEXADECIMAL_TO_DECIMAL_BY_SWITCH_CASE.C
247 Views
0 Comments
//hexadecimal to decimal by using switch case
#include<math.h>
#include<stdio.h>
#include<string.h>
int main() {
char hexdecnumber[32] = "2D";
int decimalnumber, i;
int cnt;
PRINT HALLOW DIAMOND PATTERN BY FOR LOOP IN C sunny_jain/PRINT_HALLOW_DIAMOND_PATTERN_BY_FORLOOP.C
245 Views
2 Comments
// using for loop
#include <stdio.h>

int main()
{
int n = 5, rows, columns;
for (rows = 1; rows<= n; rows++) {
for (columns = n ; columns>rows; columns--) {
PRINT HALLOW DIAMOND PATTERN USING WHILE LOOP sunny_jain/PRINT_HALLOW_DIAMOND_PATTERN_BY_WHILELOOP.C
223 Views
0 Comments
// using while loop to make a hollow diamond pattern
#include <stdio.h>
int main()
{
int n = 5, rows = 1, columns;
while (rows <= n ) {
columns = n;
while(columns > rows) {